package com.recipedb.recipedb.service;

import com.recipedb.recipedb.entity.Category;
import com.recipedb.recipedb.entity.Ingredient;

import java.util.List;
import java.util.Optional;

public interface CategoryService {
    Category save(Category entity);
    void deleteById(Long id);
    Optional<Category> findById(Long id);
    List<Category> findAll();
    List<Category> findByRecipeId(Long recipeId);
}
